From 4983e5c3b8395ce9db4d4d361b724b4b6876bf16 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 19 Mar 2008 00:01:25 +0000 Subject: [PATCH] ioemu: Improve SDL openGL configure-script detection. Signed-off-by: Keir Fraser --- tools/ioemu/configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ioemu/configure b/tools/ioemu/configure index b0a4fb857c..bf68c12365 100755 --- a/tools/ioemu/configure +++ b/tools/ioemu/configure @@ -546,13 +546,13 @@ fi # -z $sdl if test -z "$opengl" && test "$sdl" = "yes" then cat > $TMPC << EOF -#include +#include #ifndef GL_TEXTURE_RECTANGLE_ARB #error "Opengl doesn't support GL_TEXTURE_RECTANGLE_ARB" #endif int main( void ) { return (int) glGetString(GL_EXTENSIONS); } EOF -if $cc -o $TMPE $TMPC -lGL 2> /dev/null +if $cc -o $TMPE `$sdl_config --cflags --libs 2> /dev/null` -I/usr/include/GL $TMPC -lXext -lGL 2> /dev/null then opengl="yes" else -- 2.30.2